package com.bwie.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Article {

	private Integer id;
	private String title;
	private String zhaiyao;
	private String content;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date time;
	private String pic;
	private String order;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getZhaiyao() {
		return zhaiyao;
	}
	public void setZhaiyao(String zhaiyao) {
		this.zhaiyao = zhaiyao;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getPic() {
		return pic;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}
	public String getOrder() {
		return order;
	}
	public void setOrder(String order) {
		this.order = order;
	}
	@Override
	public String toString() {
		return "Article [id=" + id + ", title=" + title + ", zhaiyao=" + zhaiyao + ", content=" + content + ", time="
				+ time + ", pic=" + pic + ", order=" + order + "]";
	}
	public Article(Integer id, String title, String zhaiyao, String content, Date time, String pic, String order) {
		super();
		this.id = id;
		this.title = title;
		this.zhaiyao = zhaiyao;
		this.content = content;
		this.time = time;
		this.pic = pic;
		this.order = order;
	}
	public Article() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
}
